package com.zhangyu.shadow.repair.delegate.luncher;

import com.zhangyu.shadow.repair.base.IStringDataConvert;
import com.zhangyu.shadow.repair.delegate.bean.SetInfoBean;

import io.reactivex.disposables.Disposable;
import st.lib.base.delegate.mvp.BaseModel;
import st.lib.base.delegate.mvp.BasePresenter;
import st.lib.base.delegate.mvp.BaseView;
import st.lib.base.net.callback.IError;

/**
 * Description:
 *
 * @author Hequn.Lee
 * @date 2018/11/5
 */
public interface LauncherContract {

    interface View extends BaseView {
        void getPersonInfoSucceed(SetInfoBean infoBean);

        void getPersonInfoFailed(int code, String msg);


    }

    interface Model extends BaseModel {
        Disposable getPersonInfo(IStringDataConvert<SetInfoBean> success,
                                 IError error);

        Disposable getCanEditTime(IStringDataConvert<String> success,
                                  IError error);
    }

    abstract class Presenter extends BasePresenter {

        //登录
        abstract void getPersonInfo();

        abstract void getCanEditTime();
    }
}
